package mypazar.customer;

import org.apache.log4j.Logger;

import tr.edu.ege.seagent.planner.htn.Action;
import tr.edu.ege.seagent.planner.htn.ExecutionMethod;
import tr.edu.ege.seagent.planner.htn.Provision;

/**
 * Action class of ACHandleFailure.
 */
public class ACHandleFailure extends Action {

	/**
	 * failureMessage provision.
	 */
	@Provision
	private String message;

	/**
	 * Returns the value of the failureMessage provision.
	 */
	public String getMessage() {
		return this.message;
	}

	/**
	 * Sets the value of the failureMessage provision.
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	private static Logger logger = Logger.getLogger(ACHandleFailure.class);

	/**
	 * Execution method.
	 */
	@ExecutionMethod
	public void execute() {
		logger.info(getMessage());
	}

}
